package org.nlp2rdf.navigator.benchmark;

import java.util.Set;

/**
 * Created by Claus Stadler
 * Date: Oct 15, 2010
 * Time: 4:58:25 PM
 */
@Deprecated
public class PhaseContext<E, D>
{
    private int phaseId;
    private Sample<E> fold;
    private Sample<E> current;
    private D learnedDescription;
    private Set<E> examples;
    private long learnDuration;
    private long classifyDuration;

    public PhaseContext(int phaseId, Sample<E> fold, Sample<E> current, D learnedDescription, Set<E> examples, long learnDuration, long classifyDuration)
    {
        /*
        this.phaseId = phaseId;
        this.fold = fold;
        this.current = current;
        this.learnedDescription = learnedDescription;
        this.examples = examples;
        this.learnDuration = learnDuration;
        this.classifyDuration = classifyDuration;
        */
        this.phaseId = phaseId;
        this.fold = fold; //Sample.create(fold);
        this.current = current; //Sample.create(current);
        this.learnedDescription = learnedDescription;
        this.examples = examples;
        this.learnDuration = learnDuration;
        this.classifyDuration = classifyDuration;
    }

    private int getPhaseId()
    {
        return phaseId;
    }

    public Sample<E> getFold() {
        return fold;
    }

    public Sample<E> getCurrent() {
        return current;
    }

    public D getLearnedDescription() {
        return learnedDescription;
    }

    public Set<E> getExamples() {
        return examples;
    }

    public long getLearnDuration()
    {
        return learnDuration;
    }

    public long getClassifyDuration()
    {
        return classifyDuration;
    }
}